import json
from config import BASE_DIR

def build_data(filename):
    with open(filename, 'r', encoding='utf-8') as f:
        json_data = json.load(f)
        data_list = []
        for i in json_data:
            data_list.append(tuple(i.values()))
    return data_list
if __name__ == '__main__':
    s=build_data(BASE_DIR+'/data/login.json')
    print(s)